package com.eccg.shopping.activity;

import com.eccg.shopping.R;

import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;

public class MendianDaohangActivity extends BaseActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mendiandaohang);
	}
	
	@Override
	protected void initHeader() {
		super.initHeader();
		titleTx.setText("门店导航");
		Button backBtn = new Button(this);
		backBtn.setText("返回");
		backBtn.setTextSize(16);
		backBtn.setTextColor(getResources().getColor(R.color.white));
		backBtn.setGravity(Gravity.CENTER);
		backBtn.setBackgroundResource(R.drawable.left_btn_bg);
		backBtn.setOnClickListener(new Button.OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		leftTitle.removeAllViews();
		leftTitle.addView(backBtn);
	}

	
	@Override
	protected int getMenuIndex() {
		return 0;
	}
}
